import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [{
  path:"/",
  redirect:"/about"
},
  {
    path: '/home',
    name: 'Home',
    component: Home,
    children:[
      {
        path: '/about',
        name: 'About',
        component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
      },{
        path: '/bute',
        name: 'Bute',
        component: () => import(/* webpackChunkName: "about" */ '../views/shangpin/Bute.vue')
      },
      {
        path: '/list',
        name: 'List',
        component: () => import(/* webpackChunkName: "about" */ '../views/shangpin/List.vue')
      }, {
        path: '/bret',
        name: 'Bret',
        component: () => import(/* webpackChunkName: "about" */ '../views/shangpin/Bret.vue')
      }, {
        path: '/pinjia',
        name: 'Pinjia',
        component: () => import(/* webpackChunkName: "about" */ '../views/shangpin/Pinjia.vue')
      },{
        path: '/peizhi',
        name: 'Peizhi',
        component: () => import(/* webpackChunkName: "about" */ '../views/miao/Peizhi.vue')
      },{
        path: '/miaosha',
        name: 'Miaosha',
        component: () => import(/* webpackChunkName: "about" */ '../views/miao/Miaosha.vue')
      },{
        path: '/gaisu',
        name: 'Gaisu',
        component: () => import(/* webpackChunkName: "about" */ '../views/din/Gaisu.vue')
      },{
        path: '/guanli',
        name: 'Guanli',
        component: () => import(/* webpackChunkName: "about" */ '../views/din/Guanli.vue')
      },{
        path: '/peisong',
        name: 'Peisong',
        component: () => import(/* webpackChunkName: "about" */ '../views/din/Peisong.vue')
      },{
        path: '/pinjiashangpin',
        name: 'pinjiashangpin',
        component: () => import(/* webpackChunkName: "about" */ '../views/din/pinjiashangpin.vue')
      },{
        path: '/deang',
        name: 'Deang',
        component: () => import(/* webpackChunkName: "about" */ '../views/tuan/Deang.vue')
      },{
        path: '/lu',
        name: 'Lu',
        component: () => import(/* webpackChunkName: "about" */ '../views/tuan/Lu.vue')
      },{
        path: '/she',
        name: 'She',
        component: () => import(/* webpackChunkName: "about" */ '../views/tuan/She.vue')
      },{
        path: '/shen',
        name: 'Shen',
        component: () => import(/* webpackChunkName: "about" */ '../views/tuan/Shen.vue')
      },{
        path: '/tuan',
        name: 'Tuan',
        component: () => import(/* webpackChunkName: "about" */ '../views/tuan/Tuan.vue')
      },{
        path: '/biao',
        name: 'Biao',
        component: () => import(/* webpackChunkName: "about" */ '../views/mendian/Biao.vue')
      },{
        path: '/dao',
        name: 'Dao',
        component: () => import(/* webpackChunkName: "about" */ '../views/mendian/Dao.vue')
      },{
        path: '/dindan',
        name: 'Dindan',
        component: () => import(/* webpackChunkName: "about" */ '../views/mendian/Dindan.vue')
      },{
        path: '/men',
        name: 'Men',
        component: () => import(/* webpackChunkName: "about" */ '../views/mendian/Men.vue')
      },{
        path: '/pin',
        name: 'Pin',
        component: () => import(/* webpackChunkName: "about" */ '../views/mendian/Pin.vue')
      },{
        path: '/tixian',
        name: 'Tixian',
        component: () => import(/* webpackChunkName: "about" */ '../views/mendian/Tixian.vue')
      },{
        path: '/zhi',
        name: 'Zhi',
        component: () => import(/* webpackChunkName: "about" */ '../views/mendian/Zhi.vue')
      },{
        path: '/cangku',
        name: 'Cangku',
        component: () => import(/* webpackChunkName: "about" */ '../views/cang/Cangku.vue')
      },{
        path: '/chaxun',
        name: 'Chaxun',
        component: () => import(/* webpackChunkName: "about" */ '../views/cang/Chaxun.vue')
      },{
        path: '/chuku',
        name: 'Chuku',
        component: () => import(/* webpackChunkName: "about" */ '../views/cang/Chuku.vue')
      },{
        path: '/cangkucha',
        name: 'ChukuCha',
        component: () => import(/* webpackChunkName: "about" */ '../views/cang/ChukuCha.vue')
      },{
        path: '/pandian',
        name: 'Pandian',
        component: () => import(/* webpackChunkName: "about" */ '../views/cang/Pandian.vue')
      },{
        path: '/ruku',
        name: 'RuKu',
        component: () => import(/* webpackChunkName: "about" */ '../views/cang/RuKu.vue')
      },{
        path: '/xiaoqu',
        name: 'Xiaoqu',
        component: () => import(/* webpackChunkName: "about" */ '../views/cang/Xiaoqu.vue')
      },{
        path: '/xinayou',
        name: 'Xinayou',
        component: () => import(/* webpackChunkName: "about" */ '../views/cang/Xinayou.vue')
      },{
        path: '/daili',
        name: 'Daili',
        component: () => import(/* webpackChunkName: "about" */ '../views/fen/Daili.vue')
      },{
        path: '/fenxiao',
        name: 'Fenxiao',
        component: () => import(/* webpackChunkName: "about" */ '../views/fen/Fenxiao.vue')
      },{
        path: '/huiyuan',
        name: 'Huiyuan',
        component: () => import(/* webpackChunkName: "about" */ '../views/fen/Huiyuan.vue')
      },{
        path: '/sezhi',
        name: 'Sezhi',
        component: () => import(/* webpackChunkName: "about" */ '../views/fen/Sezhi.vue')
      },{
        path: '/yong',
        name: 'Yong',
        component: () => import(/* webpackChunkName: "about" */ '../views/fen/Yong.vue')
      },{
        path: '/yunying',
        name: 'Yunying',
        component: () => import(/* webpackChunkName: "about" */ '../views/fen/Yunying.vue')
      },{
        path: '/zhifu',
        name: 'Zhifu',
        component: () => import(/* webpackChunkName: "about" */ '../views/zhifu/Zhifu.vue')
      },
    ]
  },{
    path:"/login",
    component: () => import(/* webpackChunkName: "about" */ '../views/Login.vue')
  }
 
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
